package com.websuites.proxy;

import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;

public class HalfOpenSocketRetryException extends IOException
{
	private static final long serialVersionUID = 6482468116052132182L;
	
	private IOException nested;
	
	public HalfOpenSocketRetryException()
	{
	}
	
	public HalfOpenSocketRetryException(String paramString)
	{
		super(paramString);
	}
	
	public HalfOpenSocketRetryException(IOException paramIOException)
	{
		this.nested = paramIOException;
	}
	
	public String toString() 
	{
		return this.nested != null ? this.nested.toString() : super.toString();
	}
	
	public void printStackTrace(PrintStream paramPrintStream) 
	{
		if (this.nested != null)
		{
			this.nested.printStackTrace(paramPrintStream);
		}
		else
		{
			super.printStackTrace(paramPrintStream);
		}
	}
	
	public void printStackTrace(PrintWriter paramPrintWriter) 
	{
		if (this.nested != null)
		{
			this.nested.printStackTrace(paramPrintWriter);
		}
		else
		{
			super.printStackTrace(paramPrintWriter);
		}
	}
	
	public void printStackTrace()
	{
		printStackTrace(System.err);
	}
}